package com.tboss.template.common.springSecurity;

import java.util.List;

import com.tboss.global.services.securityProvider.PreludeUserDto;
import com.tboss.template.system.dto.GroupDto;
import com.tboss.template.system.dto.MapGrpFnDto;

@SuppressWarnings("serial")
public class SecurityUserDto extends PreludeUserDto {
	
    /*//===> Super Class Fields
    private String username;
    private String password;
    private String email;
    private String firstName;
    private String lastName;
 
    private List<GrantedAuthority> authorities;
    private boolean accountNonExpired = true;
    private boolean accountNonLocked = true;
    private boolean credentialsNonExpired = true;
    private boolean enabled = true;
    */
	
	private List<MapGrpFnDto> myMenu;
	private List<GroupDto> myGroup;
	private String usrUseYN;
	private Integer roleWeight = 0;
	
	public List<MapGrpFnDto> getMyMenu(){ return this.myMenu; }
	public void setMyMenu(List<MapGrpFnDto> myMenu){ this.myMenu = myMenu; }
	
	public List<GroupDto> getMyGroup(){ return this.myGroup; }
	public void setMyGroup(List<GroupDto> myGroup){ this.myGroup = myGroup; }
	
	public String getUsrUseYN(){ return this.usrUseYN; }
	public void setUsrUseYN(String usrUseYN){ this.usrUseYN = usrUseYN; }
	
	public Integer getRoleWeight(){ return this.roleWeight; }
	public void setRoleWeight(Integer roleWeight){ this.roleWeight = (roleWeight != null) ? roleWeight : 0; }
	
}
